package io.kimmking.dubbo.demo.consumer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.kimmking.dubbo.demo.consumer.model.RmbAccount;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaogege
 * @since 2021-06-07
 */
public interface RmbAccountMapper extends BaseMapper<RmbAccount> {

    /**
     * 增加资金
     *
     * @param userId
     * @param amount
     * @return
     */
    int increaseAmount(@Param("userId") String userId,
                       @Param("amount") BigDecimal amount);

}
